Add test-basic-user.sh testing for bare-user repos
authorAlexander Larsson <alexl@redhat.com>
Fri, 5 Dec 2014 13:40:15 +0000 (14:40 +0100)
committerAlexander Larsson <alexl@redhat.com>
Mon, 8 Dec 2014 09:39:44 +0000 (10:39 +0100)
This just does whatever test-basic.sh does, but on a bare-user
repo.

This works standalone, but unfortunately it breaks in
gnome-desktop-testing-runner as /tmp doesn't support
xattrs, so it is not installed atm.

https://bugzilla.gnome.org/show_bug.cgi?id=741125

Makefile-tests.am
tests/test-basic-user.sh [new file with mode: 0755]

index 4a8894eadfe0cba19dc2ff99043fe5153320bffd..cf4bc969785ad297d9fd5a1d98ee1dec80e6d9ba 100644 (file)
@@ -66,6 +66,7 @@ insttest_DATA = tests/archive-test.sh \
        tests/libtest.sh \
        tests/admin-test.sh \
        tests/basic-test.sh \
+       tests/test-basic-user.sh \
        tests/corrupt-repo-ref.js \
        $(NULL)
 
diff --git a/tests/test-basic-user.sh b/tests/test-basic-user.sh
new file mode 100755 (executable)
index 0000000..c170525
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/bash
+#
+# Copyright (C) 2011 Colin Walters <walters@verbum.org>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+set -e
+
+echo "1..1"
+
+. $(dirname $0)/libtest.sh
+
+setup_test_repository "bare-user"
+echo "ok setup"
+
+. $(dirname $0)/basic-test.sh